package com.yanggu.jt808.model.req;

import com.yanggu.jt808.annotation.Jt808Property;
import com.yanggu.jt808.enums.DataType;
import com.yanggu.jt808.model.base.DataPackage;
import lombok.Data;

@Data
public class T0102Msg extends DataPackage {

    /**
     * 终端重连后上报鉴权码
     */
    @Jt808Property(desc = "鉴权码", version = {-1, 0})
    @Jt808Property(lengthUnit = DataType.BYTE, desc = "鉴权码", version = 1)
    private String token;

    @Jt808Property(length = 15, desc = "终端IMEI", version = 1)
    private String imei;

    @Jt808Property(length = 20, desc = "软件版本号", version = 1)
    private String softwareVersion;


    public T0102Msg(DataPackage dataPackage) {
        super(dataPackage);
    }

    @Override
    public void parseBody() {
        // bo TODO 解析


    }

}